class WebSocketInstance {
    wsUrl = 'ws://117.34.99.190:8083/api/chat-socket'
    socketInstance = null
    open = null
    constructor() {
    }

    createSocket(token = '') {
        this.socketInstance = new WebSocket(`${this.wsUrl}?token=${token}`)

        // this.open = this.socketInstance.onopen

        // this.error = this.socketInstance.error

        // this.send = this.socketInstance.send

        // this.message = this.socketInstance.onmessage

        // this.close = this.socketInstance.onclose
    }

}

export default new WebSocketInstance()